package ua.org.enginer.tracking
{
	import mx.controls.ComboBox;
	import mx.events.DropdownEvent;
	
	public class ComboBoxTrackingImpl extends UIComponentTrackingImpl
	{
		public function ComboBoxTrackingImpl(target:ComboBox) {
			super(target)
			target.addEventListener(DropdownEvent.CLOSE, openCloseHandler, false, 0, true);
        	target.addEventListener(DropdownEvent.OPEN, openCloseHandler, false, 0, true);
		}
		
		protected function openCloseHandler(event:DropdownEvent):void {
			tracker.trackEvent(trackingName, "DropdownEvent."+event.type)
		}
		
	}
}